package com.subsequent.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.subsequent.mapper.DepartmentsMapper;
import com.subsequent.pojo.Departments;
import com.subsequent.pojo.Doctors;
import com.subsequent.service.DoctorsService;
import com.subsequent.mapper.DoctorsMapper;
import com.subsequent.vo.DoctorVO;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
* @author 19329
* @description 针对表【doctors(医生信息表)】的数据库操作Service实现
* @createDate 2025-05-07 08:39:50
*/
@Service
public class DoctorsServiceImpl extends ServiceImpl<DoctorsMapper, Doctors>
    implements DoctorsService{

    @Resource
    private DoctorsMapper doctorsMapper;
    @Autowired
    private DepartmentsMapper departmentsMapper;

    @Override
    public List<DoctorVO> listDoctorVO() {
        return doctorsMapper.selectDoctorVOList();
    }
    @Override
    public List<DoctorVO> queryDoctors(String doctorName, Integer deptId, Integer status, Date startTime, Date endTime) {
        return doctorsMapper.queryDoctors(doctorName, deptId, status, startTime, endTime);
    }


}




